﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SugarWebApi.Commands
{

	public class GetEntryListCommand : SugarWebCommand
	{

		#region Constructors

		public GetEntryListCommand(
			SugarWebConext context,
			SugarWebProcessor processor,
			GetEntryListParameters parameters)
			: base(context, processor, parameters)
		{
		}

		#endregion

		#region Properties

		public string SessionId
		{
			get { return this.Parameters.SessionId; }
		}

		public string Module
		{
			get { return this.Parameters.Module; }
		}

		public string Query
		{
			get { return this.Parameters.Query; }
			set { this.Parameters.Query = value; }
		}

		public string OrderBy
		{
			get { return this.Parameters.Order; }
			set { this.Parameters.Order = value; }
		}

		public int Offset
		{
			get { return this.Parameters.Offset; }
			set { this.Parameters.Offset = value; }
		}

		public string[] Fields
		{
			get { return this.Parameters.Fields; }
			set { this.Parameters.Fields = value; }
		}

		public int Limit
		{
			get { return this.Parameters.Limit; }
			set { this.Parameters.Limit = value; }
		}

		public bool Deleted
		{
			get { return this.Parameters.Deleted; }
			set { this.Parameters.Deleted = value; }
		}

		public new GetEntryListParameters Parameters
		{
			get { return base.Parameters as GetEntryListParameters; }
		}

		#endregion

	}

}
